﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
    CodeFileBaseClass="Cinemon.BaseClass" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Cinemon</title>
    <style type="text/css">
        body
        {
            font-family: Verdana;
            margin-top: 0;
            margin-left: 0;
            margin-right: 0;
            margin-bottom: 0;
        }
    </style>
    <script type="text/javascript">
        function LoginFailed() {
            document.getElementById('lblLoginStatus').innerText = 'Username or Password was incorrect, please try again.';
            var username = document.getElementById('tbxUsername');
            username.innerText = '';
            username.focus();
        }
    </script>
</head>
<body style="background-color: #cfdae9">
    <form id="form1" runat="server" defaultbutton="btnLogin">
    <div>
        <table cellspacing="0" cellpadding="0" width="100%" style="background-color: #375379">
            <tr>
                <td align="center">
                    <asp:Label ID="Label4" runat="server" Text="Cinema Management System" Font-Bold="true"
                        Font-Size="16pt" ForeColor="White"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <table width="100%">
        <tr>
            <td align="center">
                <table cellspacing="0" style="border-width: 1px; border-style: solid; border-color: #375379;
                    background-color: White; width:300px">
                    <tr style="background-color: #375379">
                        <td>
                            <table width="100%">
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="Label1" runat="server" Text="Login" ForeColor="White" Font-Bold="true"
                                            Font-Size="Large"></asp:Label>
                                    </td>
                                    <td align="right" style="width: 130px">
                                        <asp:Button runat="server" Text="Register" SkinID="HeaderButton" ID="btnRegister"
                                            OnClick="Register_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table cellpadding="10">
                                <tr>
                                    <td>
                                        <table style="font-size: small; width: 300px">
                                            <tr style="height: 10px">
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label2" runat="server" Text="Username : "></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="tbxUsername" runat="server" Width="100%"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label3" runat="server" Text="Password : "></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="tbxPassword" runat="server" Width="100%" TextMode="Password"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr style="height: 10px">
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="right">
                                                    <table cellspacing="0">
                                                        <tr>
                                                            <td align="right">
                                                                <asp:Button runat="server" Text="Forgot Password" ID="btnForgotPassword" OnClick="btnForgotPassword_Click" />
                                                            </td>
                                                            <td>
                                                                <asp:Button runat="server" Text="Login" ID="btnLogin" OnClick="Login_Click" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:Label runat="server" ID="lblLoginStatus" ForeColor="Red"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
